<?php

/**
 * Created by PhpStorm.
 * User: yiban
 * Date: 2017/7/14
 * Time: 下午2:31
 */
namespace app\Http\Transformers;

use App\Models\Video;
use League\Fractal\TransformerAbstract;

class VideoTransformer extends TransformerAbstract
{
    public function transform(Video $videos)
    {
        return $videos->attributesToArray();
    }
}
